
<!DOCTYPE html>
<html>

  <head>
    <title>Memory Patch</title>
    <link href="css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css"/>
    <style>
      body {
        padding-top: 35px;
      }
    </style>
    <link href="css/bootstrap-responsive.min.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="css/style.css" media="all" rel="stylesheet" type="text/css"/>

    <script src="javascripts/json2.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="javascripts/underscore.js"></script>
    <script src="javascripts/backbone.js"></script>
    <script src="javascripts/todo.js"></script>
  </head>

  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="#">Memory Patch</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li class="active"><a href="#">Tasks</a></li>
              <li><a href="#breakdown">Breakdown</a></li>
              <li><a href="#invite">Invite</a></li>
              <li><a href="#about">About</a></li>
              <li><a href="/logout">Logout</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="container" id="todoapp">
      <h1>Todos</h1>

        <div class="row" id="create-todo">
          <div class="span8 offset2">
            <input id="new-todo" placeholder="What needs to be done?" type="text" class="span8" />
            <span class="ui-tooltip-top" style="display:none;">Press Enter to save this task</span>
          </div>
        </div>

        <div class="row" id="todos">
          <div class="span8 offset2">
            <div style="display:none;">
              <label for="check-all" class="checkbox">
                <input type="checkbox"/>
                Mark all as complete
              </label>
            </div>
            <ul id="todo-list" class="unstyled"></ul>
          </div>
        </div>

        <div class="row"> <div class="span8 offset2" id="todo-stats"></div></div>


    </div>

    <script type="text/template" id="item-template">
      <div class="todo <%= done ? 'done' : '' %>">

          <label class="checkbox">
            <input class="check" type="checkbox" <%= done ? 'checked="checked"' : '' %> />
            <%= content %>
          </label>
          <span class="todo-destroy"></span>
        <div class="edit">
          <input class="todo-input" type="text" value="<%= content %>" />
        </div>
      </div>
    </script>

    <script type="text/template" id="stats-template">
      <% if (total) { %>
        <span class="todo-count">
          <span class="number"><%= remaining %></span>
          <span class="word"><%= remaining == 1 ? 'item' : 'items' %></span> left.
        </span>
      <% } %>
      <% if (done) { %>
        <span class="todo-clear">
          <a href="#">
            Clear <span class="number-done"><%= done %></span>
            completed <span class="word-done"><%= done == 1 ? 'item' : 'items' %></span>
          </a>
        </span>
      <% } %>
    </script>

  </body>

</html>
